<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<title>追踪记录信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<script language="javascript">
function doInsType(){
	if(check()){
		if(confirm("确认保存信息？")){
			document.all.operate.value = "insinfo";
			document.forms[0].submit();
		}
	}
}
 //限制添加快捷内容的字数  
var maxLength =30; 
function MaxInput(fo,len) {
	if(len!=""){
		maxLength=len;
	}
	if (fo.value.length > maxLength) {
		alert("输入内容过多！");
		fo.value = fo.value.substring(0, maxLength);
	}
}

</script>
</head>
<body >
<form name="form1" method="post" action="<%=path %>/traceinfo.action">
<script type="text/javascript">
if('${msg}'=='true'){
	_alert('保存成功');
	doclose();
	//parent.document.forms[0].submit();
}else if('${msg}'=='false'){
	_alert('保存失败');
}
</script>
<table width="100%" height="99%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
      <td class="MainBody_body" style="padding:10 20px 0 0;"><input name="operate" type="hidden" value=""/>
      <div align="right" style="padding: 0 10 10 0;">
      	 <input type="button" class="btn" value="${traceinfo.tid==null||traceinfo.tid eq '' ?'保 存':'修 改' }" onclick="doInsType()"/>&nbsp;&nbsp;
		 <input type="button" class="btn" value="关 闭" onclick="doclose()"/>&nbsp;&nbsp;</div>
		 <input name="pt.clientid" type="hidden" value="${traceinfo.clientid }" />
		 <input name="pt.orderid" type="hidden" value="${traceinfo.orderid }" />
		 <input name="pt.tid" type="hidden" value="${traceinfo.tid }" />
      <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
            <tr>
              <td  colspan="6" class="bg_title">追踪记录信息</td>
            </tr>
            <tr>
              <th width="18%" nowrap="nowrap">订单名称</th>
              <td width="32%" ><input name="ordername" type="text" value="${traceinfo.ordername }" class="readinput" readonly/></td>
              <th width="18%" nowrap="nowrap">订单地址</th> 
              <td width="32%" ><input name="unitAddress" type="text" value="${traceinfo.unitAddress }" class="readinput" readonly/></td>
            </tr>
            <tr>
              <th width="18%" nowrap="nowrap">货站名称</th>
              <td width="32%" ><input name="pt.depotname" type="text" value="${traceinfo.depotname }"/></td>
              <th width="18%" nowrap="nowrap">货站地址</th> 
              <td width="32%" ><input name="pt.depotsite" type="text" value="${traceinfo.depotsite==null||traceinfo.depotsite eq '' ?traceinfo.unitAddress:traceinfo.depotsite }" /></td>
            </tr>
            <tr>
              <th nowrap="nowrap">联系人</th> 
              <td><input name="pt.depotpeople" type="text" value="${traceinfo.depotpeople }" /></td>
              <th nowrap="nowrap">联系电话</th>
              <td><input name="pt.depotphone" type="text" value="${traceinfo.depotphone }" /></td>
              </tr>
            <tr>
              <th align="center" nowrap="nowrap" >备注信息</th> 
              <td colspan="5"><textarea name="pt.remark" style="width: 100%;" rows="6" onblur="MaxInput(this,100)">${traceinfo.remark }</textarea></td>
            </tr>
		</table>
      </td>
  </tr>
</table>
</form>
</body>
</html>
